var a = require("../../@babel/runtime/helpers/interopRequireDefault").default, e = require("../../config/CT_share_index/index.js"), n = a(require("../../utils/Tips")), t = getApp(), i = t.eventBus;

Page({
    data: {
        CTImageBaseUrl: e.imageBaseUrl.CT_share_index,
        listOrders: {},
        num1: 0,
        num2: 0,
        actionEndFlag: !1
    },
    onLoad: function(a) {
        var e = this;
        t.globalData.actionEndFlag && (this.setData({
            actionEndFlag: t.globalData.actionEndFlag
        }), wx.hideShareMenu()), this.pageSub = i.on("CT_share_inv", function(a) {
            var n = a.listOrders, t = n.orders && n.orders.filter(function(a) {
                return 2 === a.businessStatus || 3 === a.businessStatus || 6 === a.businessStatus;
            });
            e.setData({
                listOrders: n,
                num1: t.length
            }), console.log(n);
        });
    },
    showForbiddenToast: function() {
        n.default.toast("活动已过期");
    },
    gotoIndex: function() {
        wx.navigateBack({
            delta: 1
        });
    },
    onShareAppMessage: function(a) {
        var n;
        return n = t.globalData.aucPhone ? {
            title: "【限时】0元领取畅听王卡，速戳！",
            path: "/pages/CT_share_newUser/index?a=" + t.globalData.aucMiniAuth.a + "&sid=" + t.globalData.aucMiniAuth.sid + "&channel=" + t.globalData.aucChannel,
            imageUrl: e.imageBaseUrl.CT_share_index + "banner_share.png"
        } : {
            title: "快来领会员，手慢无",
            path: "/pages/CT_share_index/index?a=" + t.globalData.aucMiniAuth.a + "&channel=" + t.globalData.aucChannel,
            imageUrl: e.imageBaseUrl.CT_share_index + "banner_share_no_phone.jpg"
        }, console.log(n), n;
    }
});